set(src_dirs
            APP
            GUI/src
            HMI/src)

set(include_dirs
            APP/include
            GUI/inc
            HMI/inc)

set(requires
            driver
            fatfs       #sdcard
            esp_wifi
            esp_event
            # nvs_flash
            lwip
            #spiffs
            esp_timer
            espressif__esp_tinyusb)

idf_component_register(SRC_DIRS ${src_dirs} INCLUDE_DIRS ${include_dirs} REQUIRES ${requires})

component_compile_options(-ffast-math -O3 -Wno-error=format=-Wno-format)

# idf_component_register(SRCS "led.c"
#                     INCLUDE_DIRS "."
#                     REQUIRES esp_driver_gpio)